package cn.edu.fzu.delivery.service.impl;

import cn.edu.fzu.delivery.domain.entity.City;
import cn.edu.fzu.delivery.mapper.CityMapper;
import cn.edu.fzu.delivery.service.CityService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author yifan
 * @date 2022/11/7
 */
@Service
public class CityServiceImpl implements CityService {

    @Resource
    private CityMapper cityMapper;
    @Override
    public List<City> list(Long provinceId) {
        return cityMapper.list(provinceId);
    }
}
